<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  	<head>
	    <base href="<%=basePath%>">
	    <title></title>
	    <meta charset="UTF-8">
		<title>住宿要求</title>
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="css/public.css" />
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="css/personHobby.css" />
		<script type="text/javascript" src="js/jquery-1.11.0.js" charset="UTF-8"></script>	
		<script type="text/javascript" src="js/style.js" charset="UTF-8"></script>
  	</head>
  	<%
 		String id=new String(request.getParameter("id").getBytes("ISO-8859-1"),"UTF-8");
 		String password=new String(request.getParameter("password").getBytes("ISO-8859-1"),"UTF-8");
 		String name=new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");
 		String className=new String(request.getParameter("className").getBytes("ISO-8859-1"),"UTF-8");
 	%>
	<body>
		<div id="head" class="gradient clear">
			<div class="fl" id="log">
				<a id="logo" href="index.jsp"></a>
			</div>
			<div class="head_message fr" id="head_message">
				<span>欢迎您： <a href="login.jsp"><%=name%></a> 同学</span>
			</div>
		</div>
		<div id="body">
			<h1>住宿要求</h1>
			<form id="studentInfo" name="studentInfo" style="padding: 25px 0;" action="${pageContext.request.contextPath}/HobbyServlet" method="post">
				<div class="info_clear clear none">
		            <label class="label-name" for="student_name" >姓　　名：</label>
		            <div class="info_left">
		                <input class="ipt content" name="student_name" id="student_name" readOnly="readOnly"  value="<%=name%>"/>
		            </div>
				</div>
				<div class="info_clear clear none">
		            <label class="label-name" for="student_id" >学　　号：</label>
		            <div class="info_left">
		                 <input class="ipt content" name="student_id" id="student_id" readOnly="readOnly"  value="<%=id%>"/>
		            </div>
				</div>
				<div class="info_clear clear none">
		            <label class="label-name" for="student_className" >专业班级：</label>
		            <div class="info_left">
		                 <input class="ipt content" name="student_className" id="student_className" readOnly="readOnly"  value="<%=className%>"/>
		            </div>
				</div>
				<div class="info_clear clear none">
		            <label class="label-name" for="student_password" >密　　码：</label>
		            <div class="info_left">
		                <input class="ipt content" type="password" name="student_password" id="student_password" value="<%=password%>">
		            </div>
				</div>
				<div class="info_clear clear">
		            <span class="label-name" >寝室类型：</span>
		            <div class="info_left">
		                <label class="label" for="roomSize_4">
							<input type="radio" class="radio"  name="roomSize" value="四人寝" id="roomSize_4"/>
		        			<span>四人寝</span>
						</label>
						<label class="label" for="roomSize_6">
							<input type="radio" class="radio" name="roomSize" value="六人寝" id="roomSize_6"/>
		        			<span>六人寝</span>
						</label>
						<label class="label" for="roomSize_8">
							<input type="radio" class="radio" name="roomSize" value="八人寝" id="roomSize_8"/>
		        			<span>八人寝</span>
						</label>
		            </div>
		        </div>
		        <div class="info_clear clear">
		            <span class="label-name" >个人习惯：</span>
		            <div class="info_left">
		                <label class="label" for="personHabit_1">
							<input type="checkbox" class="checkbox"  name="personHabit" value="吸烟" id="personHabit_1"/>
		        			<span>吸烟</span>
						</label>
						<label class="label" for="personHabit_2">
							<input type="checkbox" class="checkbox" name="personHabit" value="喝酒" id="personHabit_2"/>
		        			<span>喝酒</span>
						</label>
		            </div>
		        </div>
		        <div class="info_clear clear">
		            <span class="label-name" >生活习性：</span>
		            <div class="info_left">
		                <label class="label" for="lifeHabit_1">
							<input type="radio" class="radio"  name="lifeHabit" value="安静" id="lifeHabit_1"/>
		        			<span>安静</span>
						</label>
						<label class="label" for="lifeHabit_2">
							<input type="radio" class="radio" name="lifeHabit" value="热闹" id="lifeHabit_2"/>
		        			<span>热闹</span>
						</label>
						<label class="label" for="lifeHabit_3">
							<input type="radio" class="radio" name="lifeHabit" value="默认" id="lifeHabit_3"/>
		        			<span>默　认</span>
						</label>
		            </div>
		        </div>
		        <div class="info_clear clear">
		            <span class="label-name" >起居习惯：</span>
		            <div class="info_left">
		                <label class="label" for="liveHobby_1">
							<input type="radio" class="radio"  name="liveHobby" value="规律" id="liveHobby_1"/>
		        			<span>生活规律</span>
						</label>
						<label class="label" for="liveHobby_2">
							<input type="radio" class="radio" name="liveHobby" value="不规律" id="liveHobby_2"/>
		        			<span>生活不规律</span>
						</label>
						<label class="label" for="liveHobby_3">
							<input type="radio" class="radio" name="liveHobby" value="默认" id="liveHobby_3"/>
		        			<span>默　认</span>
						</label>
		            </div>
		        </div>
				<div class="info_clear clear">
					<input type="submit" class="btn" id="enter" value="保存信息"/>
				</div>
			</form>
		</div>
	</body>
</html>
